home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-09-23 | 2.2 KB | 76 lines | [TEXT/ttxt] |
- --SODABuildPlug
- --Plug-In Demo
-
- on mouseUp
- answer "This Plug-In is an example piece of code that does nothing."
- end mouseUp
-
- ∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
- SODAColor™
- PLUG-IN WRITING DOCUMENTATION:
-
- If you are used to Hypercard scripting, you may want to experiment with
- this new feature of SODAColor. If not, this will probably not mean very
- much to you.
-
- This document is actually a Hypercard script
- which can be easily imported into your collection
- of Plug-Ins by selecting Import Plug-In from
- the Special Effects Button on the Edit Palette.
-
- More extensive documentation for creating your own scripts will be provided
- periodically. If you register your copy of SODAColor, you will not only receive
- free updates as they are made available, but you will also be sent snippets of
- code.
-
- Okay, briefly, the code structure follows this form:
-
- --SODABuildPlug <--This MUST be your first line!!!
- --My Test Plug <--The name you want your plug-in to use.
-
- Next, simply enter your own code in the form of an on mouseUp script:
-
- on mouseUp
- answer "This Plug-In is an example piece of code that does nothing."
- end mouseUp
-
- What can go into a plug-in?
-
- Anything you would normally put in an on mouseUp script:
-
- on mouseUp
- Answer "Who is your favorite actor?" with "Ron" or "George" or "Bill"
- if it is "Ron" then domenu "Quit HyperCard"
- if it is "George" then play "Car Horn"
- if it is "Bill" then play "Boink"
- end mouseUp
-
- Including local functions:
-
- on mouseUp
- Answer "Who is your favorite leader?" with "Nancy" or "Barbara" or "Hillary"
- if it is "Nancy" then
- answer "Have you checked your Horoscope today" with "Yes" or "No"
- exit mouseUp
- else if it is "Barbara" then
- play "Car Horn"
- exit mouseUp
- else if it is "Hillary" then doHillary
- end mouseUp
-
- on doHillary
- answer "Select a Topic" with "Makeover" or "WWater" or "HCare"
- end doHillary
-
- If you register your copy of SODAColor, you will receive extra documentation on how to access
- many of its built-in features. For now consider yourself limited to basic HyperCard constructs.
-
- For the more adventurous...
- You may wish to write Plug-Ins for XFCN's and XCMD's.
-
- ∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
-
-
-
-
-